@import "../variables";

.search {

  .breadcrumb {

    .mr-1 {
      margin-right: 1em;
    }

    .mr-2 {
      margin-right: 0.5em;
    }

    .bc-label {
      color: black;
      font-weight: 600;
    }

    .bc-value,
    .el-tag__close {
      color: red;
    }
  }

  .selector {
    margin-top: 10px;
    background-color: #f3f3f3;
    border-top: 1px solid #dddddd;

    &-item {
      position: relative;
      line-height: 26px;
      border-bottom: 1px solid #dddddd;

      &-title {
        float: left;
        width: 110px;
        padding: 5px;
        font-weight: 900;
      }

      &-content {
        margin-left: 130px;
        padding: 5px 5px 5px 10px;
        background-color: #FFFFFF;

        .search-brand-box {
          margin-right: 200px;

          .search-brand-item {
            padding: 6px;
            height: 36px;
            overflow: hidden;
            position: relative;
            margin-right: 2px;
            border: 1px solid #dddddd;

            .el-image {
              height: 36px;
              width: 102px;
            }

            .brand-desc {
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              line-height: 48px;
              text-align: center;
              color: red;
              font-weight: 600;
              display: none;
            }
          }

          .brand_hover,
          .brand_selected {
            cursor: pointer;
            border: 1px solid red;

            .brand-desc {
              display: block !important;
            }
          }
        }

        .search-cate-box {
          margin-right: 200px;

          .search-cate-item {
            margin-right: 50px;

            .el-link {
              display: block;
            }
          }

          .cate_hover,
          .cate_selected {

            .el-link__inner {
              color: red;
            }
          }
        }

        .search-attr-box {
          margin-right: 200px;

          .search-attr-item {
            margin-right: 50px;

            .el-link {
              display: block;
            }
          }

          .base-attr_hover,
          .base-attr_selected {

            .el-link__inner {
              color: red;
            }
          }
        }

        .search-advanced-attr-box {
          overflow: hidden;

          .search-advanced-attr-item {
            margin-right: 15px;

            .el-link {
              display: block;
            }
          }
        }

      }

      &-ext {
        position: absolute;
        top: 3px;
        right: 0px;
        width: 145px;
        background-color: #FFFFFF;
      }
    }

  }

  .search-top {
    width: auto;
    background-color: #f3f3f3;
    height: auto;
    padding: 6px;
    border-bottom: 1px solid #E7E3E7;
    border-top: 1px solid #E7E3E7;
  }

  .search-content {

    .sku-item {
      width: 236px;
      padding-top: 10px;
      padding-bottom: 10px;
      margin: 1px;

      a {
        text-decoration: none;
      }

      .p-img {

        .el-image {
          height: 236px;
          width: 236px;
        }
      }

      .p-scroll {
        margin: 0 8px;

        .p-main {
          width: 100%;
          overflow: hidden;
          position: relative;

          .m-pre,
          .m-next {
            width: 18px;
            display: block;
            position: absolute;
            top: 0;
            height: 34px;
            line-height: 34px;
            cursor: pointer;

            .icon-svg {
              position: absolute;
              left: 0;
              top: 8px;
            }
          }

          .m-pre {
            left: 0;
          }

          .m-next {
            right: 0;
          }

          .m-wrap {
            width: 184px;
            position: relative;
            left: 18px;
            top: 0;
            overflow: hidden;

            .m-item {
              padding: 2px;
              height: 26px;
              width: 26px;
              border: 2px solid #ccc;

              .el-image {
                height: 26px;
                width: 26px;
              }
            }

            .m-item_select {
              border: 2px solid red !important;
            }
          }
        }
      }

      .p-price {
        height: 22px;
        line-height: 22px;
        overflow: hidden;
        color: red;
        font-size: 20px;
        margin: 10px 6px 0 6px;
        font-style: normal;
      }

      .p-title {
        color: #666;
        margin: 10px 6px;

        em {
          display: block;
          line-height: 20px;
          overflow: hidden;
          height: 20px;
          width: auto;
        }
      }
    }
  }

}

.search-advanced-attr-popover {
  width: auto !important;
  min-width: 400px !important;
  max-width: 800px !important;

  .search-advanced-attr-item {

    .search-advanced-attr-content {
      position: relative;
      margin-right: 150px;
      height: auto;

      .search-advanced-attr-item {
        margin-right: 50px;

        .el-link {
          display: block
        }
      }

      .advanced-attr_hover,
      .advanced-attr_selected {

        .el-link__inner {
          color: red;
        }
      }
    }

    .search-advanced-attr-ext {
      position: absolute;
      top: 10px;
      right: 0px;
      width: 140px;
    }
  }
}